﻿<!DOCTYPE html>

<html>

<head>
    <meta name="viewport" content="width=device-width" />
    <title></title>
    <script src="~/js/frame.js"></script>
</head>

<body>
    <div style="margin:20px">
        <button type="button" class="btn btn-primary" onclick="Test()">测试</button>
        <button type="button" class="btn btn-primary" onclick="AlertTest()">提示</button>
        <button type="button" class="btn btn-primary" onclick="SuccessTest()">成功提示</button>
        <button type="button" class="btn btn-primary" onclick="WaringTest()">警告提示</button>
        <button type="button" class="btn btn-primary" onclick="FailTest()">失败提示</button>
        <button type="button" class="btn btn-primary" onclick="ConfirmTest()">确认提示</button>
    </div>
    <script>
        function Test() {
            var param = "111";
            OpenTopDialog('新增系统参数', 'sub', 600, 1200, function (data) {
                alert("callback")
                console.log("closereturn:" + data);
            }, param)
        }
        function AlertTest() {
            OpenAlert("保存完毕！", function () {
                alert("alert finish")
            })
        }
        function SuccessTest() {
            OpenSuccess("保存成功！")
        }
        function WaringTest() {
            OpenWaring("数据不符合格式！")
        }
        function FailTest() {
            OpenFail("保存失败！")
        }
        function ConfirmTest() {
            OpenConfirm("是否继续录入", function () {
                alert("确认继续")
            })
        }
    </script>
</body>
</html>